package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysNoticeDao {
    /*
    * 基于条件查询通告信息
    *
    * */
    List<SysNotice> selectNotices(SysNotice sysNotice);

    //将内存中的notice对象，持久化到数据库
    int insertNotice(SysNotice sysNotice);

    @Select("select * from sys_notice where id=#{id}")
    SysNotice selectNotice(Long id);

    int updateNotice(SysNotice sysNotice);
    int deleteById(Long ...ids);

    

}
